home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_2
/
pb_116.zip
/
SDK.ZIP
/
BIRTHDAY.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-21
|
779b
|
32 lines
#include "pb_sdk.h"
char *expr[] = { "GREAT","GOOD","DON'T CARE","DEPRESSING","HATE IT" };
main()
{
int age;
char c;
FILE *fp;
age = LoginDate[2]-CurUser->birthday[2];
printf("\n\7 ** \3CONGRATULATIONS\7 ** How does it feel to be %d years old?\n\n",age);
printf(" \0031 \7- \6Great!\n"
" \0032 \7- \6Good I guess...\n"
" \0033 \7- \6I don't care\n"
" \0034 \7- \6Pretty depressing\n"
" \0035 \7- \6I hate it!!\n\n"
" \7Please select: \3");
c = WaitKeys("12345");
printf("%c\n\n\6Thank you! Press [Enter] to continue.\t\n",c);
fp = fopen("BIRTHDAY.LOG","at");
fprintf(fp,"%-35s : Age %-2d -> %s\n",CurUser->name,age,expr[c-'1']);
fclose(fp);
return 0;
}